import request from '@/utils/http'

// 结算页面获取用户信息
export function getOrderPreApi() {
  return request.get('/member/order/pre')
}

// 提交订单
export function orderApi(data) {
  return request({
    url: '/member/order',
    method: 'post',
    data
  })
}

// 获取订单详情（提交订单后）
export function getOrderDetailsApi(id) {
  return request.get(`/member/order/${id}`)
}
